#ifndef MENU_H_
#define MENU_H_

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "video-graphics.h"

typedef int (*Ptr_To_Function)(void);
typedef void (*Ptr_To_FunctionArgs) (int i, int j);

typedef struct
{
	unsigned int option_number;
	char * text;
	Ptr_To_FunctionArgs value_function;
	Ptr_To_Function process_function;
	
} MenuEntry;

typedef struct
{
	Ptr_To_Function function;
	const char* title;
	MenuEntry* options;
	const unsigned int options_size;
	int selected_option;
} Menu;

void printMenu(Menu* menu, int posX, int posY);
void startMenu(Menu* menu, int posX, int posY);

#endif

